<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
request.setCharacterEncoding("UTF-8");
String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : "";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="<%=basePath%>">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" type="text/css"	href="<%=basePath %>admin/assets/jquery-easyui-1.4.3/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=basePath %>admin/assets/jquery-easyui-1.4.3/themes/icon.css">
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="<%=basePath %>admin/assets/css/backOffice/myeasyui_base.css" type="text/css"></link>
<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/assets/css/backOffice/newsStyle.css">

<style type="text/css">

#tinybox{position:absolute; display:none; padding:10px; background:#ffffff url(image/preload.gif) no-repeat 50% 50%; border:10px solid #e3e3e3; z-index:10000;}
#tinymask{position:absolute; display:none; top:0; left:0; height:100%; width:100%; background:#000000; z-index:9500;}
#tinycontent{background:#ffffff; font-size:1.1em;}


</style>
<body>
    <div class="topTitle">
    	个人/检验人员用户管理
    </div>
    
    <!-- Begin 管理面板 -->
 	<div id="main_layout" class="easyui-layout">
	    <div data-options="region:'center',title:'个人/检验人员用户管理'" style="padding:5px;background:#eee;">
	    	<table class="easyui-datagrid"  id="il" 
				data-options="rownumbers:true,singleSelect:true,url:'admin/iAndI/iAndI_getDataJson.action',method:'get',toolbar:'#btn_il',checkOnSelect: true,pageSize: '20',pageList: [20, 30, 40, 50, 100],pagination:true,fit:true" >
			
				<thead>
					<tr>
						<th data-options="field:'accountId',width:60,align:'center'">用户编号</th>
						<th data-options="field:'nickName',fit:'true',align:'left'">用户名</th>
						<th data-options="field:'account',fit:'true',align:'left'">账号</th>
						<th data-options="field:'accountTypeName',width:90,align:'center'">账号类型</th>
						<th data-options="field:'headImgURL',width:60,align:'center'"formatter="headImgFormatter">头像</th>
						<th data-options="field:'sex',width:50,align:'center'"formatter="sexFormatter">性别</th>
						<th data-options="field:'birthday',width:80,align:'center'"formatter="birthdayFormatter">生日</th>
						<th data-options="field:'phone',width:100,align:'center'">手机号</th>
						<th data-options="field:'companyCompName',fit:'true',align:'left'"formatter="companyFormatter">单位名称</th>
						<th data-options="field:'address',fit:'true',align:'left'">地址</th>
						<th data-options="field:'email',fit:'true',align:'left'"formatter="mailFormatter">邮箱</th>
						<th data-options="field:'jinyongFlag',width:50,align:'center'"formatter="jinyongFlagFormatter">启用</th>
						<th data-options="field:'addTime',width:150,align:'center'"formatter="dateHHmmssFormatter">创建时间</th>
					</tr>
				</thead>
			</table>
		
	    </div>
	</div>
	<!-- End 管理面板 -->
    
     <!-- Begin 菜单详情操作按钮 -->
    <div id="btn_il" style="height:auto">
    	<div style="margin-bottom:5px">
<!-- 			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-map_add',plain:true" onclick="addAd()">上传报告</a> -->
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="updateInfo()">修改信息</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-play_green',plain:true" onclick="operation()">启用</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-pause_green',plain:true" onclick="forbid()">禁用</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="updatePass()">修改密码</a>
		</div>
		<div>
			<table style="font-size: 13">
				<tr>
					<td style="text-align: right;">
						用户编号： 
					</td>
					<td>
						<input class="easyui-textbox" id="search_accountId"  data-options="" style="width:150px"></input>
					</td>
					<td class="align_right_100">
						用户名： 
					</td>
					<td>
						<input class="easyui-textbox" id="search_nickName" data-options="" style="width:150px"></input>
					</td>
					<td class="align_right_100">
						账号： 
					</td>
					<td>
						<input class="easyui-textbox" id="search_account"  data-options="" style="width:150px"></input>
					</td>
				</tr>
				<tr>
					<td style="text-align: right;">
						手机号： 
					</td>
					<td>
						<input class="easyui-textbox" id="search_phone"  data-options="" style="width:150px"></input>
					</td>
					<td class="align_right_100">
						是否启用： 
					</td>
					<td>
						<select class="easyui-combobox"  id="search_jinyongFlag"   panelHeight="auto" style="width:150px" >
							<option value="">==请选择==</option>
							<option value="0">已启用</option>
							<option value="1">未启用</option>
						</select>
					</td>
					<td class="align_right_100">
						账号类型： 
					</td>
					<td>
<!-- 						<input class="easyui-combobox" id="search_accountType" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=account_type&comBoBox.isSelect=true',panelHeight:'auto'" /> -->
						<select class="easyui-combobox"  id="search_accountType"   panelHeight="auto" style="width:150px" >
							<option value="">==请选择==</option>
							<option value="3">检验人员用户</option>
							<option value="4">个人用户</option>
						</select>
					</td>
					<td class="align_right_100">
						<a class="easyui-linkbutton" iconCls="icon-search" onclick="searchIl()">查询</a>
					</td>
				</tr>
			</table>
			<br>
		</div>
	</div>
    <!-- End 菜单详情操作按钮 -->

    <!-- Begin 修改用户详情 -->
	<div id="updateInfo_dialog" class="easyui-dialog"  style="padding:10px" data-options="modal:true,closed:true,resizable:true,shadow:false">
    	<form id="info_form" method="post" enctype="multipart/form-data">
	    	<input type="hidden" id="form_accountId" name="il.accountId" />
		    <table style="width: 600px" align="center" style="font-size: 13">
				<tr>
	    			<td  class="updatePage_110">账号：</td>
	    			<td>
	    				<div id="Id" style="display:inline"></div>
	    			</td>
	    			
	    			<td  class="updatePage_110">用户名：</td>
	    			<td>
	    				<input id="form_nickName" class="easyui-textbox" name="il.nickName" data-options="required:true,validType:'length[2,20]'" style="width:200px"/>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td  class="updatePage_110">性别：</td>
	    			<td>
	    				<select class="easyui-combobox" name="il.sex" id="form_sex"   panelHeight="auto" style="width:200px" >
							<option value="">==请选择==</option>
							<option value="true">男</option>
							<option value="false">女</option>
						</select>
	    			</td>
	    			
	    			<td  class="updatePage_110">生日：</td>
	    			<td>
	    				<input  class="easyui-datebox" name="il.birthday" id="form_birthday"  data-options="sharedCalendar:'#cc'" style="width:200px" required="true"></input>
	    			</td>
	    			
	    		</tr>
	    		<tr>
	    			<td  class="updatePage_110">手机号：</td>
	    			<td>
	    				<input  class="easyui-textbox" name="il.phone" id="form_phone"  data-options="required:true,validType:'length[1,15]'" style="width:200px" required="true"></input>
	    			</td>
	    			
	    			<td  class="updatePage_110">单位名称：</td>
	    			<td>
	    				<input id="form_compName" class="easyui-textbox" name="il.compName" data-options="validType:'length[0,50]'" style="width:200px"/>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td  class="updatePage_110">地址：</td>
	    			<td>
	    				<input  class="easyui-textbox" name="il.address" id="form_address"  data-options="validType:'length[0,50]'" style="width:200px"></input>
	    			</td>
	    			
	    			<td  class="updatePage_110">邮箱：</td>
	    			<td>
	    				<input id="form_email" class="easyui-textbox" name="il.email" data-options="validType:'email'" style="width:200px"/>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td  class="updatePage_110">头像：</td>
	    			<td><input type="file" name="ilImg1" id="form_img1" style="width:200px"/></td>
	    		
	    			<td  class="updatePage_110"></td>
	    			<td style="width:200px"><a style='display: none' id = "show_ilImg" >[查看]</a></td>
	    		</tr>
	    	</table>
	    	<div id="cc" class="easyui-calendar"></div>
	    </form>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" id="from_submit" onclick="submitDataForm()">提交</a>
	    </div>
	</div>
	<!-- End 修改用户详情 -->
    
    <!-- Begin 修改密码详情 -->
	<div id="updatePass_dialog" class="easyui-dialog"  style="padding:10px" data-options="modal:true,closed:true,resizable:true,shadow:false">
    	<form id="pass_form" method="post" enctype="multipart/form-data">
	    	<input type="hidden" id="form_pass_accountId" name="il.accountId" />
		    <table style="width: 350px" align="center" style="font-size: 13">
				<tr>
	    			<td  class="updatePage_75">账号：</td>
	    			<td>
	    				<div id="passId" style="display:inline"></div>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td  class="updatePage_75">密码：</td>
	    			<td>
	    				<input id="form_password" type="password" name="il.password" validType="length[4,32]" class="easyui-validatebox" required="true" type="password" value=""/>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td  class="updatePage_75">确认密码：</td>
	    			<td>
	    				<input id="form_confirm" required="true" class="easyui-validatebox"  validType="equalTo['#form_password']" invalidMessage="两次输入密码不匹配" type="password" />
	    			</td>
	    		</tr>
	    	</table>
	    </form>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" id="from_submit" onclick="submitPassForm()">提交</a>
	    </div>
	</div>
	<!-- End 修改密码详情 -->
	
	<!-- Begin 上传人详情 -->
	<div id="com_dialog" class="easyui-dialog"  style="padding:10px" data-options="modal:true,closed:true,resizable:true,shadow:false">
	    	<table style="width: 350px" align="center">
	    		<tr>
	    			<td align="right">编&nbsp; &nbsp; &nbsp;号：</td>
	    			<td id = "accountId"  style="width: 230px"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">企业名称：</td>
	    			<td id = "compName" style="width: 230px"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">联 系 人：</td>
	    			<td  id = "linkMan"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">电&nbsp; &nbsp; &nbsp;话：</td>
	    			<td  id = "phone"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">传&nbsp; &nbsp; &nbsp;真：</td>
	    			<td   id = "fax"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">邮&nbsp; &nbsp; &nbsp;箱：</td>
	    			<td   id = "email"></td>
	    		</tr>
	    	</table>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="dialog_close()">关闭</a>
	    </div>
	</div>
	<!-- End 上传人详情 -->
	
	<script type="text/javascript" src="<%=basePath %>admin/assets/js/BackOffice/mine-function.js"></script>
	<script type="text/javascript" src="<%=basePath %>admin/youbiao/news/js/tinybox.js"></script>
	<script type="text/javascript" src="<%=basePath %>admin/youbiao/individualAndInspector/js/js_individualAndInspector.js"></script>
	<script type="text/javascript">
		function tanchupic(src){
			var content = "<img width='auto' height='500' src='"+src+"'/>";//弹出图片
		    TINY.box.show(content,0,0,0,0);
		   }
	</script>
</body>
</html>
